#shader vertex
#version 330 core
layout( location = 0 ) in vec4 position;
layout( location = 1 ) in vec4 a_color;

out vec4 v_color;

uniform mat4 u_mvp; //matrix view

void main() {
    v_color = a_color;
    gl_Position = u_mvp * position;
}


#shader fragment
#version 330 core
layout( location = 0 ) out vec4 outColor;

in vec4 v_color;
uniform vec4 u_color;
uniform sampler2D u_texture;

void main() {
    outColor = v_color * u_color;
}
